package generics;
class Hasfexit extends HasF{

}
public class Manipulator2<T extends HasF> {
    private T obj;
    public Manipulator2(T x){
        obj=x;
    }
    public void manipulate(){
        obj.f();
    }

    public static void main(String[] args) {
        Manipulator2<Hasfexit> mf=new Manipulator2<Hasfexit>(new Hasfexit());
        mf.manipulate();
    }
}
